package leetcode_周赛._2021._202108._20210815;

/**
 * @author yzh
 * @version 1.0
 * @date 2021/8/15 10:30
 */
public class _5843 {

    public int numOfStrings(String[] patterns, String word) {
        int ans = 0;
        for (int i = 0; i < patterns.length; i++) {
            if (word.contains(patterns[i])) ++ans;
        }
        return ans;
    }

}
